<div class="navbar navbar-inverse">
      <div class="container header-tools">
	      <div class="rows">
	      	<div class="col-md-6 col-lg-6 col-sm-6 text-left hidden-xs visible-sm visible-md visible-lg">
	      	</div>
	     	<div class="col-md-6 col-lg-6 col-sm-6 col-xs-12 text-right" id="login-frame">
			登录区域
	     	</div>
	     	<script type="text/javascript">
     			var loginframeUrl = ctx+"/common/login_frame.jsp";
	     		$("#login-frame").load(loginframeUrl,function(response,status){
					 if (status=="success"){
						$(this).html(response);
					 }else{
						 $(this).html("请求失败，请检查服务端！");
					 }
				});
     		</script>
	      </div>
	  </div>
      <div class="container top">
        <div class="navbar-header">
          <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
	          <a class="navbar-brand hidden-xs hidden-sm" href="/">
	     			<img class="img-responsive" src="${site.imgLogo!'/images/def-log.png'}" style="width:300px; height:36px;"/>
	          </a>
        </div>
        <div class="navbar-collapse collapse" role="navigation">
          <ul class="nav navbar-nav navbar-right">
          	<li><a href="/">首页</a></li>
        <#if (firstList?? && firstList?size > 0)>
		<#list firstList as obj1>
			<#if (childList[obj1.channelId]?exists && childList[obj1.channelId]?size > 0)>
			<li class="dropdown">
				<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
					${obj1.channelName}<span class="caret"></span>
				</a>
				<ul class="dropdown-menu">
				<#list childList[obj1.channelId] as obj2>
					<#if obj2.channelType=='link'>
					<li><a href="${ctx}${obj2.redirectUrl!''}">${obj2.channelName}</a></li>
					<#else>
					<li><a href="${obj2.redirectUrl!''}">${obj2.channelName}</a></li>
					</#if>
					<li role="separator" class="divider"></li>
				</#list>
				</ul>
			</li>
			<#else>
			<li><a href="${obj1.redirectUrl!''}">${obj1.channelName}</a></li>
			</#if>
		</#list>
		</#if>

          </ul>
        </div>
      </div>
    </div>